
#ifndef _SHOWFINDDIRECTIONRESULTFORM_H_
#define _SHOWFINDDIRECTIONRESULTFORM_H_

#include <FBase.h>
#include "FormManager.h"
#include "WebForm.h"
using namespace Osp::Base;
using namespace Osp::Base::Collection;
using namespace Osp::Ui;
using namespace Osp::Ui::Controls;

class ShowFindDirectionResultForm :
	public Osp::Ui::Controls::Form,
	public IActionEventListener
{
// static request
public:
	const static RequestId REQUEST_FINDDIRECTION_RESULT = 1;

private:
	static const int ID_SOFTKEY_OK = 1023;
	static const int ID_SOFTKEY_CANCEL = 1024;
	List *pList;
	IList *pListArg;
	static int FormId;
	IList *pListString;
// Construction
public:
	ShowFindDirectionResultForm(void);
	virtual ~ShowFindDirectionResultForm(void);
	bool Initialize();
	result OnInitializing(void);
	result OnTerminating(void);
	void OnUserEventReceivedN(RequestId requestId,Osp::Base::Collection::IList* pArgs);
	void SetFormId(int FormId) {
		this->FormId = FormId;
	}
	static int GetFormId() {
		return FormId;
	}

// Implementation
public:
	virtual void OnActionPerformed (const Osp::Ui::Control &source, int actionId);
// Generated call-back functions
protected:
	void AddResultToList(IList *pArgs);
	void ParseTextToList(String text);

	void OnActionOk();
	void OnActionCancel();

};

#endif
